home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / QuickDraw™ GX / Programming Stuff / Sample Code / Graphics Samples / ShapePart Browser ƒ / ShapeSetup.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  764 b   |  40 lines  |  [TEXT/KAHL]

  1. /*
  2.  *    ShapeSetup.h
  3.  *
  4.  *    Robert Dierkes,  April 26, 1993
  5.  */
  6.  
  7. #include "graphics types.h"
  8.  
  9. #define        kRowCount        3
  10. #define        kColumnCount    3
  11.  
  12. enum
  13. {
  14.     kTrapizoidPolygon,    ///
  15.     kOvalPath,
  16.     kArrowPolygon,
  17.  
  18.     kPatternedPolygon,
  19.     kWordGlyphs,
  20.     kArchCurve,
  21.  
  22.     kCapsLine,
  23.     kDashedOvalPath,
  24.     kJoinPath,            ///
  25.  
  26.     kShapeCount
  27. };
  28.  
  29. #define        kFixOneHalf        (fixed1 >> 1)
  30. #define        kHalfInch        IntToFixed (36)
  31. #define        kQuarterInch    IntToFixed (18)
  32. #define        kEigthInch        IntToFixed (9)
  33.  
  34.  
  35. boolean CreateShapesFrame (WindowPtr pWindow, register long numRows, register long numCols,
  36.             gxShape *pBoxSet);
  37. boolean CreateHitTestShapes (WindowPtr pWindow, gxShape **h1stHitShape, gxShape *pBoxSet,
  38.              register long shapeCount);
  39. void DisposeHitTestShapes (gxShape **h1stHitShape, gxShape *pBoxes);
  40.